package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.bean.wd_ht_unit;
import com.dao.wd_ht_unitMapper;
import com.service.UnitService;
@Service
public class UnitServiceImpl implements UnitService{
	@Autowired
    @Qualifier("wd_ht_unitMapper")
	private wd_ht_unitMapper unitDao;
	
	public int deleteByPrimaryKey(String unitId) {
		return unitDao.deleteByPrimaryKey(unitId);
	}

	public int insert(wd_ht_unit record) {
		return unitDao.insert(record);
	}

	public int insertSelective(wd_ht_unit record) {
		return unitDao.insertSelective(record);
	}

	public wd_ht_unit selectByPrimaryKey(String unitId) {
		return unitDao.selectByPrimaryKey(unitId);
	}

	public int updateByPrimaryKeySelective(wd_ht_unit record) {
		return unitDao.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(wd_ht_unit record) {
		return unitDao.updateByPrimaryKeySelective(record);
	}

	public List<wd_ht_unit> selectAllToBuildToProject() {
		return unitDao.selectAllToBuildToProject();
	}

	public List<wd_ht_unit> selectAllByBuild(String buildId) {
		// TODO Auto-generated method stub
		return unitDao.selectAllByBuild(buildId);
	}
}
